package com.forcht.common.domain;

import com.forcht.common.enumeration.ResponseCode;
import com.forcht.common.enumeration.ResponseType;
import lombok.*;

import java.util.Date;

/**
 * Created by forcht on 2018/4/11.
 * 响应头
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ResponseHeader {
    //响应方
    private String sender;
    //响应类型
    private ResponseType responseType;
    //响应码
    private ResponseCode responseCode;
    //响应的时间
    private Date timestamp;

    @Override
    public String toString() {
        return "ResponseHeader{" +
                "sender='" + sender + '\'' +
                ", responseType=" + responseType +
                ", responseCode=" + responseCode +
                ", timestamp=" + timestamp +
                '}';
    }
}
